package com.homework.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 评论
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {
    private Integer id;

    private String nickname;

    private String mailbox;

    private String message;

    @JsonFormat(timezone="GMT", pattern="yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;

    private static final long serialVersionUID = 1L;
}
